package com.qf.controller;

import com.qf.entity.StudentVO;
import com.qf.service.StudentService;
import com.qf.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class FindAllStuAndClass {
    @Autowired
    private StudentService studentService;
    @GetMapping("/class")
    public R findAllStudentAndClassroom(){
        List<StudentVO> list = studentService.findAllStudentAndClassroom( );
        return R.ok(list);
    }
}
